<?php
App::import('Controller', 'AdminApp');
class AdministratorController extends AdminAppController {

	public $names = "AdministratorController";
// 	public $layout = "public";
	public $uses = array("MongoArticle", "Author", "Journal", "Issue");

	function index() {
		$this->log("---- AdministratorController -> index ----");

		$journalList = $this->Journal->getAlls();
		$issueList = $this->Issue->getAlls();
		$authorList = $this->Author->getAlls();
// 		$this->trace(print_r($journalList, true));
// 		$this->trace(print_r($issueList, true));
		
		$this->set(compact('issueList', 'journalList', 'authorList'));
		
		$this->log($this->MongoArticle->openConnection());
// 		$this->log($this->MongoArticle->testMongoDB());
	}
	
}